package com.cakemallproject;

import com.cakemallproject.pojo.mapperObj.User;
import org.springframework.web.bind.annotation.*;

@RestController@RequestMapping("/test")
public class hello {
    @GetMapping("/hello")
    public String hello() {
        System.out.println("hello");
        System.out.println("lizhien");
        return "hello";
    }

    @PostMapping("/users")
    public User test(@RequestBody User user) {

        System.out.println("user = " + user);

        return user;
    }


}
